using System;
using Microsoft.SPOT;

namespace System.Collections
{
    public abstract class EqualityComparer : IEqualityComparer
    {
        private class DefaultComparer : EqualityComparer
        { }

        public new bool Equals(object x, object y)
        {
            return x.Equals(y);
        }

        public int GetHashCode(object obj)
        {
            return obj.GetHashCode();
        }

        public static IEqualityComparer Default
        {
            get { return new DefaultComparer(); }
        }
    }
}
